<template>
	<div>
	<search ref="gridSearch" @addHistory="addHistory" @closeSearch="closeSearch"  is-disableinput="false"></search>
	<shistory ref="shistory"></shistory>
	</div>
</template>

<script>
	import search from  './search.vue'
	import shistory from './searchHistory.vue'
	import api from '../../api/api'
	export default{
		methods:{
			closeSearch(){
				this.$router.go(-1);
			},
			addHistory(item){
				this.$refs.shistory.saveToHistory(item);
			}
		},
		created(){
			var that = this;
        	this.typeState = this.$router.history.current.params.cate_id;
        	console.log(this.typeState);
		},
		components:{
			search,
			shistory			
		}
	}
</script>

<style>

</style>